/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package Dsrv6.persistence.entities;

import java.io.Serializable;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author a381u296
 */
@Entity
@Table(name = "aee_registries")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "AeeRegistries.findAll", query = "SELECT a FROM AeeRegistries a"),
    @NamedQuery(name = "AeeRegistries.findByEde10Id", query = "SELECT a FROM AeeRegistries a WHERE a.ede10Id = :ede10Id"),
    @NamedQuery(name = "AeeRegistries.findByIdno", query = "SELECT a FROM AeeRegistries a WHERE a.idno = :idno"),
    @NamedQuery(name = "AeeRegistries.findByBnkId", query = "SELECT a FROM AeeRegistries a WHERE a.bnkId = :bnkId"),
    @NamedQuery(name = "AeeRegistries.findByBnkAccount", query = "SELECT a FROM AeeRegistries a WHERE a.bnkAccount = :bnkAccount"),
    @NamedQuery(name = "AeeRegistries.findByIban", query = "SELECT a FROM AeeRegistries a WHERE a.iban = :iban"),
    @NamedQuery(name = "AeeRegistries.findByAeerId", query = "SELECT a FROM AeeRegistries a WHERE a.aeerId = :aeerId"),
    @NamedQuery(name = "AeeRegistries.findByEfoId", query = "SELECT a FROM AeeRegistries a WHERE a.efoId = :efoId"),
    @NamedQuery(name = "AeeRegistries.findByDaaKodikos", query = "SELECT a FROM AeeRegistries a WHERE a.daaKodikos = :daaKodikos"),
    @NamedQuery(name = "AeeRegistries.findByAfm", query = "SELECT a FROM AeeRegistries a WHERE a.afm = :afm"),
    @NamedQuery(name = "AeeRegistries.findByProsopotype", query = "SELECT a FROM AeeRegistries a WHERE a.prosopotype = :prosopotype"),
    @NamedQuery(name = "AeeRegistries.findByLastname", query = "SELECT a FROM AeeRegistries a WHERE a.lastname = :lastname"),
    @NamedQuery(name = "AeeRegistries.findByFirstname", query = "SELECT a FROM AeeRegistries a WHERE a.firstname = :firstname"),
    @NamedQuery(name = "AeeRegistries.findByFathername", query = "SELECT a FROM AeeRegistries a WHERE a.fathername = :fathername"),
    @NamedQuery(name = "AeeRegistries.findByMunicipalityIdB2", query = "SELECT a FROM AeeRegistries a WHERE a.municipalityIdB2 = :municipalityIdB2"),
    @NamedQuery(name = "AeeRegistries.findByDnmKodikosB2", query = "SELECT a FROM AeeRegistries a WHERE a.dnmKodikosB2 = :dnmKodikosB2"),
    @NamedQuery(name = "AeeRegistries.findByName", query = "SELECT a FROM AeeRegistries a WHERE a.name = :name"),
    @NamedQuery(name = "AeeRegistries.findByOdosB2", query = "SELECT a FROM AeeRegistries a WHERE a.odosB2 = :odosB2"),
    @NamedQuery(name = "AeeRegistries.findByTaxkodikosB2", query = "SELECT a FROM AeeRegistries a WHERE a.taxkodikosB2 = :taxkodikosB2"),
    @NamedQuery(name = "AeeRegistries.findByDescription", query = "SELECT a FROM AeeRegistries a WHERE a.description = :description"),
    @NamedQuery(name = "AeeRegistries.findByAgrotisflag", query = "SELECT a FROM AeeRegistries a WHERE a.agrotisflag = :agrotisflag"),
    @NamedQuery(name = "AeeRegistries.findByAmoga", query = "SELECT a FROM AeeRegistries a WHERE a.amoga = :amoga"),
    @NamedQuery(name = "AeeRegistries.findByDtebirth", query = "SELECT a FROM AeeRegistries a WHERE a.dtebirth = :dtebirth"),
    @NamedQuery(name = "AeeRegistries.findByPhone1B1", query = "SELECT a FROM AeeRegistries a WHERE a.phone1B1 = :phone1B1"),
    @NamedQuery(name = "AeeRegistries.findByMobilephoneB1", query = "SELECT a FROM AeeRegistries a WHERE a.mobilephoneB1 = :mobilephoneB1"),
    @NamedQuery(name = "AeeRegistries.findByPhone1B2", query = "SELECT a FROM AeeRegistries a WHERE a.phone1B2 = :phone1B2"),
    @NamedQuery(name = "AeeRegistries.findByDteprotocol", query = "SELECT a FROM AeeRegistries a WHERE a.dteprotocol = :dteprotocol"),
    @NamedQuery(name = "AeeRegistries.findByProtocolarith", query = "SELECT a FROM AeeRegistries a WHERE a.protocolarith = :protocolarith"),
    @NamedQuery(name = "AeeRegistries.findByMAEEflag", query = "SELECT a FROM AeeRegistries a WHERE a.mAEEflag = :mAEEflag"),
    @NamedQuery(name = "AeeRegistries.findByKEPYOflag", query = "SELECT a FROM AeeRegistries a WHERE a.kEPYOflag = :kEPYOflag"),
    @NamedQuery(name = "AeeRegistries.findByAPASXflag", query = "SELECT a FROM AeeRegistries a WHERE a.aPASXflag = :aPASXflag"),
    @NamedQuery(name = "AeeRegistries.findByOGAflag", query = "SELECT a FROM AeeRegistries a WHERE a.oGAflag = :oGAflag"),
    @NamedQuery(name = "AeeRegistries.findByKepyoPososto", query = "SELECT a FROM AeeRegistries a WHERE a.kepyoPososto = :kepyoPososto"),
    @NamedQuery(name = "AeeRegistries.findByDoyId", query = "SELECT a FROM AeeRegistries a WHERE a.doyId = :doyId"),
    @NamedQuery(name = "AeeRegistries.findByIdtype", query = "SELECT a FROM AeeRegistries a WHERE a.idtype = :idtype"),
    @NamedQuery(name = "AeeRegistries.findByIddteekd", query = "SELECT a FROM AeeRegistries a WHERE a.iddteekd = :iddteekd"),
    @NamedQuery(name = "AeeRegistries.findByIdekdarxh", query = "SELECT a FROM AeeRegistries a WHERE a.idekdarxh = :idekdarxh"),
    @NamedQuery(name = "AeeRegistries.findByAmka", query = "SELECT a FROM AeeRegistries a WHERE a.amka = :amka"),
    @NamedQuery(name = "AeeRegistries.findByNumodosB2", query = "SELECT a FROM AeeRegistries a WHERE a.numodosB2 = :numodosB2")})
public class AeeRegistries implements Serializable {
    private static final long serialVersionUID = 1L;
    // @Max(value=?)  @Min(value=?)//if you know range of your decimal fields consider using these annotations to enforce field validation
    @Column(name = "EDE10_ID")
    private Double ede10Id;
    @Column(name = "IDNO")
    private String idno;
    @Column(name = "BNK_ID")
    private Double bnkId;
    @Column(name = "BNK_ACCOUNT")
    private String bnkAccount;
    @Column(name = "IBAN")
    private String iban;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "AEER_ID")
    private Long aeerId;
    @Column(name = "EFO_ID")
    private Double efoId;
    @Column(name = "DAA_KODIKOS")
    private String daaKodikos;
    @Column(name = "AFM")
    private String afm;
    @Column(name = "PROSOPOTYPE")
    private Double prosopotype;
    @Column(name = "LASTNAME")
    private String lastname;
    @Column(name = "FIRSTNAME")
    private String firstname;
    @Column(name = "FATHERNAME")
    private String fathername;
    @Column(name = "MUNICIPALITY_ID_B2")
    private String municipalityIdB2;
    @Column(name = "DNM_KODIKOS_B2")
    private String dnmKodikosB2;
    @Column(name = "NAME")
    private String name;
    @Column(name = "ODOS_B2")
    private String odosB2;
    @Column(name = "TAXKODIKOS_B2")
    private String taxkodikosB2;
    @Column(name = "DESCRIPTION")
    private String description;
    @Column(name = "AGROTISFLAG")
    private Boolean agrotisflag;
    @Column(name = "AMOGA")
    private String amoga;
    @Column(name = "DTEBIRTH")
    @Temporal(TemporalType.TIMESTAMP)
    private Date dtebirth;
    @Column(name = "PHONE1_B1")
    private String phone1B1;
    @Column(name = "MOBILEPHONE_B1")
    private String mobilephoneB1;
    @Column(name = "PHONE1_B2")
    private String phone1B2;
    @Column(name = "DTEPROTOCOL")
    @Temporal(TemporalType.TIMESTAMP)
    private Date dteprotocol;
    @Column(name = "PROTOCOLARITH")
    private String protocolarith;
    @Column(name = "MAEE_flag")
    private Boolean mAEEflag;
    @Column(name = "KEPYO_flag")
    private Boolean kEPYOflag;
    @Column(name = "APASX_flag")
    private Boolean aPASXflag;
    @Column(name = "OGA_flag")
    private Boolean oGAflag;
    @Column(name = "KEPYO_POSOSTO")
    private BigDecimal kepyoPososto;
    @Column(name = "DOY_ID")
    private BigInteger doyId;
    @Column(name = "IDTYPE")
    private BigInteger idtype;
    @Column(name = "IDDTEEKD")
    @Temporal(TemporalType.TIMESTAMP)
    private Date iddteekd;
    @Column(name = "IDEKDARXH")
    private String idekdarxh;
    @Column(name = "AMKA")
    private String amka;
    @Column(name = "NUMODOS_B2")
    private String numodosB2;

    public AeeRegistries() {
    }

    public AeeRegistries(Long aeerId) {
        this.aeerId = aeerId;
    }

    public Double getEde10Id() {
        return ede10Id;
    }

    public void setEde10Id(Double ede10Id) {
        this.ede10Id = ede10Id;
    }

    public String getIdno() {
        return idno;
    }

    public void setIdno(String idno) {
        this.idno = idno;
    }

    public Double getBnkId() {
        return bnkId;
    }

    public void setBnkId(Double bnkId) {
        this.bnkId = bnkId;
    }

    public String getBnkAccount() {
        return bnkAccount;
    }

    public void setBnkAccount(String bnkAccount) {
        this.bnkAccount = bnkAccount;
    }

    public String getIban() {
        return iban;
    }

    public void setIban(String iban) {
        this.iban = iban;
    }

    public Long getAeerId() {
        return aeerId;
    }

    public void setAeerId(Long aeerId) {
        this.aeerId = aeerId;
    }

    public Double getEfoId() {
        return efoId;
    }

    public void setEfoId(Double efoId) {
        this.efoId = efoId;
    }

    public String getDaaKodikos() {
        return daaKodikos;
    }

    public void setDaaKodikos(String daaKodikos) {
        this.daaKodikos = daaKodikos;
    }

    public String getAfm() {
        return afm;
    }

    public void setAfm(String afm) {
        this.afm = afm;
    }

    public Double getProsopotype() {
        return prosopotype;
    }

    public void setProsopotype(Double prosopotype) {
        this.prosopotype = prosopotype;
    }

    public String getLastname() {
        return lastname;
    }

    public void setLastname(String lastname) {
        this.lastname = lastname;
    }

    public String getFirstname() {
        return firstname;
    }

    public void setFirstname(String firstname) {
        this.firstname = firstname;
    }

    public String getFathername() {
        return fathername;
    }

    public void setFathername(String fathername) {
        this.fathername = fathername;
    }

    public String getMunicipalityIdB2() {
        return municipalityIdB2;
    }

    public void setMunicipalityIdB2(String municipalityIdB2) {
        this.municipalityIdB2 = municipalityIdB2;
    }

    public String getDnmKodikosB2() {
        return dnmKodikosB2;
    }

    public void setDnmKodikosB2(String dnmKodikosB2) {
        this.dnmKodikosB2 = dnmKodikosB2;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getOdosB2() {
        return odosB2;
    }

    public void setOdosB2(String odosB2) {
        this.odosB2 = odosB2;
    }

    public String getTaxkodikosB2() {
        return taxkodikosB2;
    }

    public void setTaxkodikosB2(String taxkodikosB2) {
        this.taxkodikosB2 = taxkodikosB2;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Boolean getAgrotisflag() {
        return agrotisflag;
    }

    public void setAgrotisflag(Boolean agrotisflag) {
        this.agrotisflag = agrotisflag;
    }

    public String getAmoga() {
        return amoga;
    }

    public void setAmoga(String amoga) {
        this.amoga = amoga;
    }

    public Date getDtebirth() {
        return dtebirth;
    }

    public void setDtebirth(Date dtebirth) {
        this.dtebirth = dtebirth;
    }

    public String getPhone1B1() {
        return phone1B1;
    }

    public void setPhone1B1(String phone1B1) {
        this.phone1B1 = phone1B1;
    }

    public String getMobilephoneB1() {
        return mobilephoneB1;
    }

    public void setMobilephoneB1(String mobilephoneB1) {
        this.mobilephoneB1 = mobilephoneB1;
    }

    public String getPhone1B2() {
        return phone1B2;
    }

    public void setPhone1B2(String phone1B2) {
        this.phone1B2 = phone1B2;
    }

    public Date getDteprotocol() {
        return dteprotocol;
    }

    public void setDteprotocol(Date dteprotocol) {
        this.dteprotocol = dteprotocol;
    }

    public String getProtocolarith() {
        return protocolarith;
    }

    public void setProtocolarith(String protocolarith) {
        this.protocolarith = protocolarith;
    }

    public Boolean getMAEEflag() {
        return mAEEflag;
    }

    public void setMAEEflag(Boolean mAEEflag) {
        this.mAEEflag = mAEEflag;
    }

    public Boolean getKEPYOflag() {
        return kEPYOflag;
    }

    public void setKEPYOflag(Boolean kEPYOflag) {
        this.kEPYOflag = kEPYOflag;
    }

    public Boolean getAPASXflag() {
        return aPASXflag;
    }

    public void setAPASXflag(Boolean aPASXflag) {
        this.aPASXflag = aPASXflag;
    }

    public Boolean getOGAflag() {
        return oGAflag;
    }

    public void setOGAflag(Boolean oGAflag) {
        this.oGAflag = oGAflag;
    }

    public BigDecimal getKepyoPososto() {
        return kepyoPososto;
    }

    public void setKepyoPososto(BigDecimal kepyoPososto) {
        this.kepyoPososto = kepyoPososto;
    }

    public BigInteger getDoyId() {
        return doyId;
    }

    public void setDoyId(BigInteger doyId) {
        this.doyId = doyId;
    }

    public BigInteger getIdtype() {
        return idtype;
    }

    public void setIdtype(BigInteger idtype) {
        this.idtype = idtype;
    }

    public Date getIddteekd() {
        return iddteekd;
    }

    public void setIddteekd(Date iddteekd) {
        this.iddteekd = iddteekd;
    }

    public String getIdekdarxh() {
        return idekdarxh;
    }

    public void setIdekdarxh(String idekdarxh) {
        this.idekdarxh = idekdarxh;
    }

    public String getAmka() {
        return amka;
    }

    public void setAmka(String amka) {
        this.amka = amka;
    }

    public String getNumodosB2() {
        return numodosB2;
    }

    public void setNumodosB2(String numodosB2) {
        this.numodosB2 = numodosB2;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (aeerId != null ? aeerId.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof AeeRegistries)) {
            return false;
        }
        AeeRegistries other = (AeeRegistries) object;
        if ((this.aeerId == null && other.aeerId != null) || (this.aeerId != null && !this.aeerId.equals(other.aeerId))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "maae.persistence.entities.AeeRegistries[ aeerId=" + aeerId + " ]";
    }
    
}
